package com.wuren.faceSwiping.index.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wuren.faceSwiping.index.entity.Scene;
import com.wuren.faceSwiping.index.mapper.SceneMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SceneService extends ServiceImpl<SceneMapper, Scene> {
    @Autowired
    private SceneMapper sceneMapper;
    /**
     * 查所有信息
     * @return
     */
    public List findAll(){
            QueryWrapper q = new QueryWrapper();
            return sceneMapper.selectList(q);
        }
}
